package me.gv7.woodpecker.plugin;

import me.gv7.woodpecker.plugin.exploit.cmsZZZyoudianlExp;
import me.gv7.woodpecker.plugin.pocs.cmsZZZyoudainlPoc;

import java.util.ArrayList;
import java.util.List;

public class cmsyoudianPlugin implements  IVulPlugin{
    public static  IVulPluginCallbacks callbacks;

    public static  IPluginHelper pluginHelper;

    @Override
    public void VulPluginMain(IVulPluginCallbacks iVulPluginCallbacks) {
        this.callbacks = iVulPluginCallbacks;
        this.pluginHelper = iVulPluginCallbacks.getPluginHelper();

        iVulPluginCallbacks.setVulPluginName("友点CMS");
        iVulPluginCallbacks.setVulPluginVersion("1");
        iVulPluginCallbacks.setVulPluginAuthor("机理机");
        iVulPluginCallbacks.setVulName("友点CMS image_upload.php 文件上传漏洞");
        iVulPluginCallbacks.setVulDescription("友点CMS image_upload.php 文件上传漏洞");
        iVulPluginCallbacks.setVulCategory("CMS");
        iVulPluginCallbacks.setVulSeverity("8.0");
        iVulPluginCallbacks.setVulProduct("友点CMS 1day");
        iVulPluginCallbacks.setVulId("app=\"友点建站-CMS\"");
        iVulPluginCallbacks.setVulDisclosureTime("2024-3");

        iVulPluginCallbacks.registerPoc(new cmsZZZyoudainlPoc());

        List<IExploit> exploitList = new ArrayList<>();
        exploitList.add(new cmsZZZyoudianlExp());

        iVulPluginCallbacks.registerExploit(exploitList);

    }
}
